2119cbb3e44dab7903a9707b213d242acbecae8b,opennms-services/src/test/java/org/opennms/netmgt/config/NotificationManagerTest.java,NotificationManagerTest,testRuleBogus,#,179

Before Change



    // FIXME... do we really want to return true if the rule is wrong?????
    public void testRuleBogus() {
        doTestNodeInterfaceServiceWithRule("was expecting the node/interface/service match to be true",
                                           1, "192.168.1.1", "HTTP",
                                           "(aklsdfjweklj89jaikj)",
                                           false);
    }
    
    public void testIplikeAllStars() {

After Change


    // FIXME... do we really want to return true if the rule is wrong?????
    public void testRuleBogus() {
        try {
            doTestNodeInterfaceServiceWithRule("node/interface/service match",
                                               1, "192.168.1.1", "HTTP",
                                               "(aklsdfjweklj89jaikj)",
                                               false);
            fail("Expected exception to be thrown!");
        } catch (FilterParseException e) {
            // I expected this